package com.yxym.homework;

public class homework {
    public static void main(String[] args) {
        Car car = new Car();
        Car car1 = new Car(100);
        System.out.println(car);
        System.out.println(car1);
    }
}
class Car{
    double price = 10;
    static String color = "white";

    @Override
    public String toString() {
        return "price=" + price + "color=" + color;
    }

    public Car(double price) {
        this.price = price;
    }
    public  Car(){
        this.price = 9;
        this.color = "red";
    }
}